package com.ydc.ln.tutorial.pattern.singleton;

public class Dao {
	private static Dao instance = null;
	
	private Dao() {}
	
	public synchronized static Dao getInstance() {
		if(instance == null) {
			instance = new Dao();
		}
		return instance;
	}
}
